<?php
require 'header.php';
?>

<div id="container">
    <div id="left-panel">
        <div class="left-stuff">
            <?php
            if (rtrim($db->getCurrentUrl(), "/") != URL_BASE)
                include 'sale-pro.php';
            ?>
            <?php include 'list-cat.php'; ?>
        </div>	
    </div>

    <?php
    $db = new Libs_Database();
    $url = $db->getCurrentUrl();
    if (rtrim($url, "/") == URL_BASE) {
        ?>
        <!--Nivo slider-->
        <div class="slider-wrapper theme-default">
            <div class="ribbon"></div>
            <div id="slider" class="nivoSlider">
                <img src="<?php echo URL_BASE; ?>/templates/default/images/s1.jpg" alt="" />
                <a href="<?php echo URL_BASE; ?>/index.php"><img src="<?php echo URL_BASE; ?>/templates/default/images/s2.jpg" alt="" title="#htmlcaption" /></a>
                <img src="<?php echo URL_BASE; ?>/templates/default/images/s1.jpg" alt="" title="" />
                <img src="<?php echo URL_BASE; ?>/templates/default/images/s2.jpg" alt="" />
            </div>
            <!--        <div id="htmlcaption" class="nivo-html-caption">
                        <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
                    </div>-->
        </div>
        <?php
    }
    ?>
    <div id="content">
        <?php include_once TEMPLATE; ?>
    </div>
</div>

<?php
require 'footer.php';
?>

